import request from '@/utils/request'

// 查询停车场信息列表
export function listParkingInfo(query) {
  return request({
    url: '/parking/parkingInfo/list',
    method: 'get',
    params: query
  })
}

// 查询停车场信息详细
export function getParkingInfo(id) {
  return request({
    url: '/parking/parkingInfo/' + id,
    method: 'get'
  })
}

// 新增停车场信息
export function addParkingInfo(data) {
  return request({
    url: '/parking/parkingInfo',
    method: 'post',
    data: data
  })
}

// 修改停车场信息
export function updateParkingInfo(data) {
  return request({
    url: '/parking/parkingInfo',
    method: 'put',
    data: data
  })
}

// 删除停车场信息
export function delParkingInfo(id) {
  return request({
    url: '/parking/parkingInfo/' + id,
    method: 'delete'
  })
}

// 平台列表
export function selectPlatformList() {
  return request({
    url: '/parking/accessKeys/selectList',
    method: 'get'
  })
}
